Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search paginations #1646

Merged
merged 4 commits into from
Oct 30, 2018
Merged

Search paginations #1646

merged 4 commits into from
Oct 30, 2018

Conversation

fredkingham
Copy link
Contributor

refs openhealthcare/opal#1565 and openhealthcare/opal#1557

and fixes them for elcid only.

Rather than translating everything into patient summaries and then cutting the data into chunks of 10, we take all patients, order them by -max_episode_id.

Then we get all of the information we want via django annotations. I've yet to be able to make searches last 20 seconds.

I'm fairly sure we could get it a lot quicker by looking at how we do the cut in _episodes_without_restrictions but that would be a different pull request and is probably not required at this time.

… count in the patient summaries as we get this already, makes sure we call so that the prefetch_related works refs opal #1565 and opal #1557
@davidmiller
Copy link
Member

@fredkingham Assigning this to you - if we want it can we fix the test (query count - I hate that test) and merge?

We should then perhaps look at moving this wholesale into Opal v0.13 ?

@fredkingham
Copy link
Contributor Author

@davidmiller I'll fix this then make a ticket to move this to v0.13.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants